package com.dmg.sp.service;

import com.dmg.sp.entity.User;
import com.dmg.sp.utils.Result;
import com.dmg.sp.vo.UserRoleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface SysUserService {

    List<User> getUserList();

    /**
     * 为用户分配角色
     * @return
     */
    public void setUserRole(UserRoleVo vo);

    public void addUser(User user);


    /**
     * 查看用户对应的角色id
     * @return
     */
    public List<Integer>getUserRoleIds(Integer userId);

}
